package com.springDemo.AOP.proxy;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2016/8/12.
 */
@Component
@Aspect
public class payAspectJByAnnotation {

    @Pointcut(value = "execution(* com.springDemo.AOP..*.payByFace(..))")
    public  void anyMethod(){}

    @Before(value = "anyMethod()")
    public void before(){
        System.out.println("你好，你要怎么支付？");
    }

}
